﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.TenderBond
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.TenderBond;
    public class Map_Tender_Bond_Record : ClassMapping<Tender_Bond_Record>
    {
        public Map_Tender_Bond_Record()
        {
            //映射ID
            Id(x => x.Id, map => map.Length(100));



            Property(x => x.Section_No, map => map.Length(100));
            Property(x => x.Tenderer_No, map => map.Length(100));
            Property(x => x.Tenderer_Name, map => map.Length(100));
            Property(x => x.Pay_Type, map => map.Length(100));
            Property(x => x.Currency_Type, map => map.Length(100));
            Property(x => x.Bond_Unit, map => map.Length(100));
            Property(x => x.Bond_Amount);
            Property(x => x.Bond_Receive_Time);
            Property(x => x.Bond_Arrive_Time);
            Property(x => x.Bond_Back_Time);
            Property(x => x.is_valid);
            Property(x => x.create_date);
            Property(x => x.is_win);
            Property(x => x.is_back);

            Table("tender_bond_record");

            //不进行创建
            //SchemaAction(NHibernate.Mapping.ByCode.SchemaAction.None);
        }
    }
}
